import {defineStore} from 'pinia'

export const userLoginStore =defineStore('login',{
    state:()=>{
        return{
            token:'',
            permission:"",
            username:''
        }
    },
    persist:{
        enabled:true,
        strategies:[
            {
                key:"login",
                storage:localStorage,
            }
        ]
    }
})